package admin

import (
	"common/model/admin"
	"common/storage"
)

type UserService interface {
	Create(admin.AdminUser) error
}

type uerService struct{}

func NewUserService() UserService {
	return &uerService{}
}

func (s uerService) Create(u admin.AdminUser) error {
	return storage.GDB1.Create(&u).Error
}
